import requests,random
# Create your tests here.

url = "http://127.0.0.1:8000/grade"

teacher_list = ["XX","WW","HH","SS","AA","ZZ","YY"]

for i in range(20):
    data = {"name":"字母班级%s"%i,"teacher":random.choice(teacher_list)}

    req = requests.post(url,data)

    print(req.json())